

































cool-retro-term
maybe sudo apt-get install cool-retro-term?



















































../PXPTest/pxp_test.c:273 requested chan_id 69387
../PXPTest/pxp_lib.c:156 succeed mem.phys_addr = 0x76f6005c
../PXPTest/pxp_lib.c:181 MAP_FAILED.





























[root@storm ~]# falkon --no-sandbox
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libEGL warning: DRI2: failed to authenticate
libEGL warning: MESA-LOADER: failed to open swrast: Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri)
libEGL warning: DRI2: failed to authenticate
libEGL warning: MESA-LOADER: failed to open swrast: Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri)
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QWebEngineUrlScheme::registerScheme: Too late to register scheme "falkon"
QWebEngineUrlScheme::registerScheme: Too late to register scheme "extension"
Please register the custom scheme 'falkon' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'extension' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
Falkon: 1 extensions loaded
^C
[root@storm ~]# 
























[18233:18233:0213/175630.120997:FATAL:page_allocator_internals_posix.h(215)] Check failed: !madvise(address, length, MADV_DONTNEED).
Received signal 6





































apk add py3-pip


























chroot /mnt/user /bin/sh
export DISPLAY=:0
x11vnc






















telnet <Kobo IP>







warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking











apk add gcc











start <service> and stop <service>? Kindles have one and it's awesome


























mach build
and all lives in the.mozconfig file



Using the musl-gcc wrapper and use the make command you provided instead?









































sudo chroot . /usr/bin/qemu-arm /bin/bash
but it spits out that:
chroot: failed to run command ‘/usr/bin/qemu-arm’: No such file or directory
and if I run this, you can see that it's clearly there:
[nicolas@archiso kindle]$ ls usr/bin | grep qemu
qemu-arm
any clue?



[nicolas@archiso kindle]$ sudo chroot . /usr/bin/qemu-arm-static /bin/bash
bash-5.0# 




dd if=/dev/mmcblk0 of=sd.img

















[root@(none) /]# uname -a
Linux (none) 2.6.35.3-850-gbc67621 #2 PREEMPT Tue Feb 16 18:25:10 EST 2021 armv7l GNU/Linux
[root@(none) /]#
Successfully (at last) compiled a new kernel for my Kobo Mini! Actually, I always did not do make oldconfig when compiling it... what an idiot was I... (because there was already a config file there, so I didn't think that it should've been reconfigured)
Now I'm building one with kexec support and that will (hopefully) print the bootlog to the framebuffer! Isn't that great 


[root@(none) /]# uname -a
Linux (none) 2.6.35.3-850-gbc67621 #2 PREEMPT Tue Feb 16 18:25:10 EST 2021 armv7l GNU/Linux
[root@(none) /]#
Successfully (at last) compiled a new kernel for my Kobo Mini! Actually, I always did not do make oldconfig when compiling it... what an idiot was I... (because there was already a config file there, so I didn't think that it should've been reconfigured)
Now I'm building one with kexec support and that will (hopefully) print the bootlog to the framebuffer! Isn't that great 








make oldconfig

dd if=uImage of=/dev/mmcblk0 bs=512 seek=2048 (edited)




dd if=/mnt/onboard/uImage-orig of=/dev/mmcblk0 bs=512 seek=2048reboot













uname -a to enjoy a 2021 kernel













ls /dev | grep mmc



sudo apt install sqlite3















































ls /dev when you guys can plz
$PATH automatically?

mount -t devpts devpts /dev/pts



busybox telnetd -F
No.. it's already enabled. Sorry
Also don't forget to mkdir /dev/pts after dev is mounted (edited)






ls /dev/tty*

ttymxc0 device



tty*?







115200baud/s: cat /proc/cmdline
console=ttymxc0,115200 rootwait rw no_console_suspend hwcfg_p=0x9ffffe00 hwcfg_sz=110 waveform_p=0x9fd70000 waveform_sz=2686291 ntxfw_p=0x9fd6da00 ntxfw_sz=9474 mem=509M boot_port=1 rootfstype=ext4 root=/dev/mmcblk0p1 quiet
mem to 256 and reboot

[root@kobo ]# pwd
/
[root@kobo ]# ls
bin dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var
[root@kobo ]# uname -r
4.1.15-00089-ga2737fc02713
[root@kobo ]# git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: dev/.gitkeep
modified: etc/apk/world
modified: lib/apk/db/installed
modified: lib/apk/db/scripts.tar
modified: lib/apk/db/triggers
deleted: proc/.gitkeep
deleted: run/.gitkeep
deleted: sys/.gitkeep
deleted: tmp/.gitkeep
Untracked files:
(use "git add <file>..." to include in what will be committed)
.ash_history
.gitignore
etc/apk/protected_paths.d/ca-certificates.list
etc/ca-certificates.conf
etc/ca-certificates/
etc/nanorc
etc/resolv.conf
etc/terminfo/
usr/bin/c_rehash
usr/bin/git
usr/bin/git-receive-pack
usr/bin/git-shell
usr/bin/git-upload-archive
usr/bin/git-upload-pack
usr/bin/nano
usr/bin/rnano
usr/bin/xmlwf
usr/lib/libcurl.so.4
usr/lib/libcurl.so.4.6.0
usr/lib/libexpat.so.1
usr/lib/libexpat.so.1.6.11
usr/lib/libformw.so.6
usr/lib/libformw.so.6.2
usr/lib/libgcc_s.so.1
usr/lib/libmagic.so.1
usr/lib/libmagic.so.1.0.0
usr/lib/libmenuw.so.6
usr/lib/libmenuw.so.6.2
usr/lib/libncursesw.so.6
usr/lib/libncursesw.so.6.2
usr/lib/libnghttp2.so.14
usr/lib/libnghttp2.so.14.20.0
usr/lib/libpanelw.so.6
usr/lib/libpanelw.so.6.2
usr/lib/libpcre2-8.so.0
usr/lib/libpcre2-8.so.0.10.0
usr/lib/libpcre2-posix.so.2
usr/lib/libpcre2-posix.so.2.0.3
usr/libexec/
usr/sbin/update-ca-certificates
usr/share/ca-certificates/
usr/share/git-core/
usr/share/misc/magic.mgc
...git and nano to the base layout

git checkout and get the whole system back to a known good state








fatal: unable to access 'https://alpinekobox.ddns.net:3000/Alpine-KoBox/base-layout/': error:1408F10B:SSL routines:ssl3_get_record:wrong version number









proc and sys before chrooting into it













































































































































































minicom or something like that)









PIN1






































make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- EXTRA_CFLAGS=-mno-unaligned-accessSo at the moment we have default software handling for unaligned memory access faults in kernel and new CodeSourcery 2011.03-41 cross-compiler with “Unaligned access support” feature enabled by default. **As I understand, It means that compiler tries to optimize unaligned memory access with assumption that “A bit” in Control Register is unset (reset value) and hardware should handle all unaligned memory loads. But this bit is set by Linux kernel, thus, after memory access optimisation by cross-compiler ARM processor generates alignment faults, which are handled by software traps in kernel.**
There are two solutions for this issue. The first one is described in my previous post (“**-mno-unaligned-access**” parameter). **And the second is to disable alignment faults checking in Linux kernel (clear “A bit” in Control Register). I think the second solution is more preferable as hardware unaligned loads support is much faster than software handling.** After some investigation I found that alignment traps generation can be controlled using “ALIGNMENT_TRAP” kernel config parameter in “arch/arm/Kconfig”, but this parameter is by default true and it can’t be configured in menuconfig. In order to be able to change it’s value just add “Software alignment trap” text after “bool”:
config ALIGNMENT_TRAP
bool “Software alignment trap”
And unset it in menuconfig:
Kernel Features —>
[ ] Software alignment trap







U-Boot 2009.08-dirty-svn ( 8月 29 2012 - 11:15:18)
CPU: Freescale i.MX50 family 1.1V at 800 MHz
mx50 pll1: 800MHz
mx50 pll2: 400MHz
mx50 pll3: 216MHz
ipg clock : 66666666Hz
ipg per clock : 66666666Hz
uart clock : 24000000Hz
ahb clock : 133333333Hz
axi_a clock : 400000000Hz
axi_b clock : 200000000Hz
weim_clock : 100000000Hz
ddr clock : 200000000Hz
esdhc1 clock : 80000000Hz
esdhc2 clock : 80000000Hz
esdhc3 clock : 80000000Hz
esdhc4 clock : 80000000Hz
Board: MX50 RDP board
Boot Reason: [POR]
Boot Device: SD
I2C: ready
DRAM: 256 MB
In: serial
Out: serial
Err: serial
[_get_sd_number] g_sd_number:2
MMC read: dev # 2, block # 1023, count 1 partition # 0 ...
1 blocks read: OK
MMC read: dev # 2, block # 1024, count 1 partition # 0 ...
1 blocks read: OK
zforce read 7 0 (2 bytes)
zforce read 1 0 (2 bytes)
zforce read 2 0 (2 bytes)
zforce read 3 0 (2 bytes)
zforce frame start not found !
zforce frame start not found !
PCB ID is 9
Power key released!!
ram p=70000000,size=268435456
MMC read: dev # 2, block # 18431, count 1 partition # 0 ...
1 blocks read: OK
no "logo" bin header
MMC read: dev # 2, block # 14335, count 1 partition # 0 ...
1 blocks read: OK
MMC read: dev # 2, block # 14336, count 1922 partition # 0 ...
1922 blocks read: OK
Kernel RAM visiable size=255M->255M
init TPS65185 power ...
Hit any key to stop autoboot: 0
MMC read: dev # 2, block # 2047, count 1 partition # 0 ...
1 blocks read: OK
no kernel image signature !
MMC read: dev # 2, block # 2048, count 8192 partition # 0 ...
8192 blocks read: OK
## Booting kernel from Legacy Image at 70800000 ...
Image Name: r?_#3 Feb 18 08:42:19
Created: 2021-02-18 13:42:23 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1907696 Bytes = 1.8 MB
Load Address: 70008000
Entry Point: 70008000
Loading Kernel Image ... OK
OK
Starting kernel ...












Addendum: some kernels (at least 2.6.35.3 and 2.6.38 from the Freescale Quick Start Board BSP) override EXTRA_CFLAGS in the Makefiles, so needs an extra patch to make the kernel bootable when using a newer toolchain with EXTRA_CFLAGS=-mno-unaligned-access.
The main culprit seems to be in arch/arm/boot/compressed/Makefile:
-EXTRA_CFLAGS := -fpic -fno-builtin
-EXTRA_ASFLAGS := -Wa,-march=all
+ccflags-y := -fpic -fno-builtin
+asflags-y := -Wa,-march=all Have you seen this one?









































































[root@(none) ~]# ./kexec -l uImage --command-line="console=ttymxc0,115200 rootwait rw quiet lpj=3997696 root=/dev/mmcblk0p1 rootfstype=ext4 hwcfg_p=0x7ffffe00 hwcfg_sz=512 wave
form_p=0x7ff0fa00 waveform_sz=984064 mem=255M rdinit=/sbin/init" --atags
[root@(none) ~]# zcat /proc/config.gz | grep KEXEC
CONFIG_KEXEC=y
[root@(none) ~]#
that's great. execution didn't quite work though, but guess we'll know more about it when I hook up the other tx/rx line






raspi-config?




Uncompressing Linux... done, booting the kernel.






/dev shows that it has not only ttymxc0, but also ttymxc1 and ttymxc2...




















# uname -a
linux kobo 5.11.1-kobo













[admin@phoenix sd]# ls dev
console fd full initctl null ptmx pts random shm stderr stdin stdout tty urandom zero
[admin@phoenix sd]# 
tty?




ls /dev came from my Linux PC





































Spacebar stops the uboot and gets you the uboot command line.
Ha! Not sure I tried that key yet on my Aura & Mini...
https://forum.xda-developers.com/t/kobo-aura.3932621/ (edited)


dd if=uImage of=/dev/mmcblk0 bs=512 seek=2048sync and reboot





mount hi.sqsh /mnt/user









base64 the file and copy-paste via telnet haha

















devmodeon then Device Information > Developer options > factory reset






































-rw-r--r-- 1 fermino fermino 4.8M Feb 20 19:39 84a5702-1G.img.txz

4.8M



master, it will trigger this script in the server, which would build the images and publish them in an http server
MODPOST vmlinux.o
GEN .version
CC init/main.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
LD .tmp_vmlinux1
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: sound/built-in.o: in function `usb_audio_disconnect':
card.c:(.text+0x33c20): undefined reference to `switch_set_state'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: card.c:(.text+0x33c28): undefined reference to `switch_dev_unregister'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: sound/built-in.o: in function `usb_audio_probe':
card.c:(.text+0x342c0): undefined reference to `switch_dev_register'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: card.c:(.text+0x34340): undefined reference to `switch_set_state'
make: *** [Makefile:873: .tmp_vmlinux1] Error 1
make ARCH=arm CROSS_COMPILE=arm-nickel-linux-gnueabihf- uImage 396.11s user 59.90s system 106% cpu 7:10.15 total
2 nicolas@archiso ..Kobo-Reader/hw/imx6sl-glohd/kernel_imx (git)-[master] %
like this appeared from absolutely nowhere when building 3.0.35 for the Glo HD


master, it will trigger this script in the server, which would build the images and publish them in an http server 
make clean before compiling?

MODPOST vmlinux.o
GEN .version
CC init/main.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
LD .tmp_vmlinux1
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: sound/built-in.o: in function `usb_audio_disconnect':
card.c:(.text+0x33c20): undefined reference to `switch_set_state'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: card.c:(.text+0x33c28): undefined reference to `switch_dev_unregister'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: sound/built-in.o: in function `usb_audio_probe':
card.c:(.text+0x342c0): undefined reference to `switch_dev_register'
/run/media/nicolas/b0efede0-edb5-4be4-a03e-ada6e449e2d5/kobo-qemu/Toolchain/nickeltc/arm-nickel-linux-gnueabihf/bin/arm-nickel-linux-gnueabihf-ld.bfd: card.c:(.text+0x34340): undefined reference to `switch_set_state'
make: *** [Makefile:873: .tmp_vmlinux1] Error 1
make ARCH=arm CROSS_COMPILE=arm-nickel-linux-gnueabihf- uImage 396.11s user 59.90s system 106% cpu 7:10.15 total
2 nicolas@archiso ..Kobo-Reader/hw/imx6sl-glohd/kernel_imx (git)-[master] %
like this appeared from absolutely nowhere when building 3.0.35 for the Glo HD 
make clean with the same config, then disabling the usb/sound modules if it doesn't work
master in the repo
touch it if we want to bind-mount...












mksquashfs <file.txz> archive.sqsh -b 1048576 -comp xz -Xdict-size 100% -always-use-fragments

















/ in the image, and chown them to the user running the script






fakeroot ?

Entering fakeroot...

FUSE?








squashfuse $HOME/Documents/fonts.sqsh /usr/share/fonts/additional

Filesystem in User SpacEsudo?






















































insmod /drivers/<path to driver, e.g. arcotg_udc.ko>
insmod /drivers/<path to driver, e.g. g_ether.ko>
ifconfig usb0 192.168.2.2 (edited)






cp in telnet




dd if=/mnt/onboard/uImage of=/dev/mmcblk0 seek=2048 bs=512, right?






















sync && reboot

























mount hi.sqsh /mnt/user









CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:472 (message):
Assigning unknown variable 'OPENSSL_PREFIX' on command line.
also, I changed the -xplatform flag now and added the mmusl option
./configure -nomake tests -prefix /mnt/onboard/.adds/${QTDIR} -extprefix /home/${USER}/qt-bin/${QTDIR} -xplatform linux-kobo-musleabihf-g++ -sysroot ${SYSROOT} -qt-libjpeg -qt-zlib -qt-libpng -qt-harfbuzz -qt-pcre -sql-sqlite -linuxfb -no-sse2 -no-xcb -no-xcb-xlib -no-tslib -no-icu -no-dbus -nomake examples -no-compile-examples -openssl-linked OPENSSL_PREFIX="${SYSROOT}/usr/lib"
+ cd qtbase
+ /home/nicolas/qt/qt/qt5/qtbase/configure -top-level -nomake tests -prefix /mnt/onboard/.adds/qt-linux-5.15.2-kobo -extprefix /home/nicolas/qt-bin/qt-linux-5.15.2-kobo -xplatform linux-kobo-musleabihf-g++ -sysroot /home/nicolas/qt/sysroot -qt-libjpeg -qt-zlib -qt-libpng -qt-harfbuzz -qt-pcre -sql-sqlite -linuxfb -no-sse2 -no-xcb -no-xcb-xlib -no-tslib -no-icu -no-dbus -nomake examples -no-compile-examples -openssl-linked OPENSSL_PREFIX=/home/nicolas/qt/sysroot/usr/lib
opt: libjpeg val: qt
Overriding option 'libjpeg' with 'qt' (was: 'undefined')
opt: zlib val: qt
opt: libpng val: qt
Overriding option 'libpng' with 'qt' (was: 'undefined')
opt: harfbuzz val: qt
Overriding option 'harfbuzz' with 'qt' (was: 'undefined')
opt: pcre val: qt
CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:227 (message):
Unknown command line option '-no-compile-examples'.
Call Stack (most recent call first):
qtbase/cmake/QtProcessConfigureArgs.cmake:531 (qtConfAddError)
you, see I'm damned




































kobo:~/qt-linux-5.15.2-kobo_musl/bin# ./qmake
./qmake: line 1: syntax error: unterminated quoted string
kobo:~/qt-linux-5.15.2-kobo_musl/bin# readelf -h qmake
ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0xb760
Start of program headers: 64 (bytes into file)
Start of section headers: 28680848 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 12
Size of section headers: 64 (bytes)
Number of section headers: 39
Section header string table index: 38
kobo:~/qt-linux-5.15.2-kobo_musl/bin# 











































--sysroot=/home/andreas/x-tools/arm-kobo-linux-musleabihf/arm-kobo-linux-musleabihf/sysroot 





armv7l-linux-musleabihf-g++ --sysroot=/home/andreas/x-tools/arm-kobo-linux-musleabihf/arm-kobo-linux-musleabihf/sysroot but how does it know that? I deleted the pro.user file and it still does that



























git clone or a complete download of the repo though







dd if=/mnt/onboard/uImage of=/dev/mmcblk0 bs=512 seek=2048

mv /mnt/onboard/modules/<some module> /drivers/<platform>/usb/gadget







cp the base-layout folder contents to the mounted disk image?



cp the base-layout folder contents to the mounted disk image? 


=================================
=== KoBox Image Creation Tool ===
=================================
Pulling from repo...
Cloning into 'base-layout'...
remote: Enumerating objects: 404, done.
remote: Counting objects: 100% (404/404), done.
remote: Compressing objects: 100% (330/330), done.
remote: Total 404 (delta 44), reused 379 (delta 28), pack-reused 0
Receiving objects: 100% (404/404), 6.79 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (44/44), done.
Checking out files: 100% (804/804), done.
Already up to date.
=> Last commit is e178db0
Preparing filesystem...
ok
Building...
Copying e178db0-alpine.img
Mounting e178db0-alpine.img
e178db0-alpine.img mapped as /dev/loop2
Error mounting /dev/loop2: GDBus.Error:org.freedesktop.UDisks2.Error.AlreadyMounted: Device /dev/loop2 is already mounted at `/media/nicolasm/57c84e5c-288a-437f-a9b3-ec965ca659b4'.
e178db0-alpine.img mountd on
Building e178db0-alpine.img
Unmounted /dev/loop2.
Error deleting loop device /dev/loop2: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dbd_2dloop_2derror_2dquark.Code1: Error deleting /dev/loop2: Failed to detach the backing file from the /dev/loop2 device: No such device or address
Compressing image...
Removing block file...
done :)





# cp /usr/bin/qemu-arm-static ./chroot-dir/usr/bin
# chroot ./chroot-dir /usr/bin/qemu-arm-static /bin/sh (edited)






/mnt/onboard/.adds/inkvt/inkvt.armhf
what's the output?
[FBInk] Detected a Kobo Mini (340 => Pixie @ Mark 4)
[FBInk] Enabled Kobo w/o Multitouch quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 200 dpi
[FBInk] Variable fb info: 800x600, 32bpp @ rotation: 0 (Upright, 0 *degrees sign*)
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 2179072 bytes & linelength: 3200 bytes
[FBInk] Canonical rotation: 1 (Clockwise, 90 *degrees sign*)
[FBInk] Fontsize set to 16x32 (Terminus base glyph size: 8x16)
[FBInk] Line length: 50 cols, Page size: 18 rows
[FBInk] Horizontal fit is perfect!
[FBInk] Vertical fit isn't perfect, shifting rows down by 12 pixels
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
setsockopt w/ SO_REUSEPORT: Protocol not available
input_timeout
atexit_called




mount /mnt/onboard/book.sqsh /some/mountpoint
mount /mnt/onboard/book.sqsh /mnt/onboard?

mksquashfs /some/dir /some/squashfs.sqsh -b 1048576 -comp gzip -always-use-fragmentssquashfs-tools if command not found












# cp /usr/bin/qemu-arm-static ./chroot-dir/usr/bin
# chroot ./chroot-dir /usr/bin/qemu-arm-static /bin/sh (edited)
chroot /mnt /qemu-arm-static /script.sh



























\splash toram



















mksquashfs lord-of-the-rings lotr.sqsh -b 1048576 -comp gzip -always-use-fragments



mksquashfs /home/Lord\ of\ the\ rings/ lotr.sqsh -b 1048576 -comp gzip -always-use-fragmentsmksquashfs "/home/Lord of the rings" lotr.sqsh blablabla



ls /home ?


































timedatectl list-timezones

lines (numbers) END
q
















passwd command to set a root password




mount /dev/sda6 /mnt
arch-chroot /mnt
passwd?
exit and reboot
exit and shutdown now, but no difference i guess
root



useradd -m -G wheel dill

passwd dillpacman -S sudonano /etc/sudoers
uncomment the line that starts with %wheel








sudo apt-get?


pacman -S





pacman -S chromium-browser or pacman -S firefoxpacman -Syu regularly








mount /dev/sda1 /mnt?







pacman -S?








pacman -S gnome-terminal konsole xterm

pacman -S ntfs-3g





Mount is denied because the NTFS volume is exclusively opened.
umount /mnt


sync && rebootdf -h, right?



















blkid
















grub-mkconfig
/boot/grub2/grub.cfg.new: no such file or directory
/boot/grub







locale-gen





sudo pacman -Sy gnome-tweak-toolsudo pacman -Sy gnome-tweaks if it doesn't work

qemusudo pacman -S qemuqemu-img create -f qcow2 image.img 10Gqemu-system-x86_64 -cdrom <some iso> -hda image.img -m <RAM, e.g. 4096> -enable-kvm
sudo, i have root signed in on console



bash: sudo: command not found
sudo
pacman -S sudo?
user $ su root
root # some command here
root # exit
user $

root just by typing su root on whatever terminal you're logged in

sudo
then nano /etc/sudoers
uncomment line where it says "%wheel"
logout login



su root?





qemu-system-x86_64 -cdrom <some iso> -hda image.img -m <RAM, e.g. 4096> -enable-kvm 












qemu-system-x86_64 -cdrom archlinux-2020.02.25.iso -hda image.img -m 4096 -enable-kvm

















free -mh-vga virtio to the qemu cmd, you'll have a neat and crisp scaled resolution











































pacman -S chrome work?




mksquashfs rootfs/ filesystem.squashfs -b 1048576 -comp xz -Xdict-size 100% -always-use-fragments











ls -R / and it won't work
find / | grep something
-cdrom i have to include the full file location, right
qemu-img create -f qcow2 tiny.img 10G
qemu-system-x86_64 -cdrom tiny7.iso -hda tiny.img -enable-kvm -m 2048 -vga virtio





pwd
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize kvm: No such file or directory (edited)
modprobe kvm-intel
modprobe: ERROR: could not insert 'kvm_intel': Operation not supported





Windows is loading files...




































dd if=ubuntu.img of=/dev/sda2?




disk destroyer



































































What if your brain was running Linux












































Booting Linux on phsyical brain 0x0
shutdown now


pacman -S tinypxe?
















cdrecord or k3b on linux

k3b always worked very well with me



































debootstrap









































fdisk before i installed, what do you think?



parted

fdisk i'm more comfortable with (edited)










Booting Linux on physical brain 0x0
Linux version 5.4.41-brainux (tyler@tyler) (gcc version 10.2.1 (GCC) ) #99 SMP Tue Mar 2 01:21:47 EST 2021
Brain: Homo Sapiens brain, rev. 1.0 (brainPROC)
Machine model: Tyler Board
Memory policy: Data cache writeback
Brain: All brain(s) started in SVC mode,
Kernel command line: console=ttyNOSE0,115200 rootwait rw mem=VARIABLE boot_port=0 rootfstype=brainFS root=/dev/vstorage0p1
Memory (current): 1024881K/? available
BRAIN-0 enabling additional brainPROC features
BRAIN-0 successfully enabled SLEEP, WAKE, HARD_SLEEP, SOUND, CORE_FUNC
Console: ttyNOSE0 connected, 115200 baud rate.
Brain: Testing write buffer coherency: ok, 2 fails/330 writes
Brought up 1 Brain.
SMP: Total of 1 processors activated.
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 256KiB pool for atomic coherent allocations.
braincore: registered new interface driver brainfs
braincore: registered new interface driver libsound
braincore: registered new interface driver eyeslib
brain_libsound driver module loaded
Advanced Linux Sound Architecture Driver Initialized (extensions: brain_libsound, brain_audio-input-output).
NET: Registered protocol family 31
NET: Registered protocol family 2
NET: Registered protocol family 1
console [ttyNOSE0] enabled
input: hand0,hand1,ear0,ear1,mouth interfaces initialized at /dev/input









cat (edited)




cat



#!/usr/bin/python3
import os
os.chdir("/inkbox/book/split")
book = open("../book.txt", "r")
text = book.read()
book.close()
booklist = text.split(" ")
split_booklist = [booklist[x:x+225] for x in range(0, len(booklist),225)]
len_split_booklist = len(split_booklist)
i = 0
while i < len_split_booklist:
print(i)
istr = str(i)
file_iterator = open(istr, "w")
writecontent = " ".join(split_booklist[i])
# writecontent = writecontent.replace("\n", " ")
i += 1

apt-get update && apt-get upgrade


apt-get?
apt is the way

ubuntu <pkg>apt install <pkg>






fdisk

resize2fs /dev/sda3 33G?
resize2fs very often (edited)
[dill@archlinux ~]$ sudo resize2fs /dev/sda3 33G
[sudo] password for root:
resize2fs 1.46.1 (9-Feb-2021)
Filesystem at /dev/sda3 is mounted on /; on-line resizing required
resize2fs: On-line shrinking not supported
[dill@archlinux ~]$ 



resize2fs didnt work >:C








free -mh ?
total used free shared buff/cache available
Mem: 3.8Gi 902Mi 2.1Gi 191Mi 794Mi 2.5Gi
Swap: 0B 0B 0B






swapon





fdisk -l please, will help me visualize what partition layout you have
Disk /dev/sda: 149.05 GiB, 160041885696 bytes, 312581808 sectors
Disk model: WDC WD1600BEKT-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x86308630
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 69207126 69205079 33G 83 Linux
/dev/sda2 69208064 138414079 69206016 33G 83 Linux
/dev/sda3 138414080 312581807 174167728 83G 83 Linux

/dev/sda3 138414080 312581807 174167728 83G 83 Linux is the issue, i want it to be reduced to 33G


gparted, even if it's GUI i've had some luck with that in the past
sudo: gparted: command not found


























-f
e2fsck















fdisk to create some new partitions and some swap space
































I use Gentoo btw






































update-kobostuff python3 if not already done







cd /mnt/onboard/.adds/inkbox and then ./inkbox.shADDSPATH=/mnt/onboard/.adds/ QTPATH=${ADDSPATH}/qt-linux-5.15.2-kobo
LD_LIBRARY_PATH=${QTPATH}lib:lib:QT_QPA_PLATFORM=kobo:touchscreen_rotate=270:touchscreen_invert_x=1:touchscreen_invert_y=1:logicaldpitarget=0 ./inkbox


echo 100 > /sys/devices/backlight/mxc_msp430.0
ln -s in the script accordignly



































Installing Python3 r18219 . . .python-setup






./inkbox.sh






























killall inkbox before re-launching it if you didn't quit it with the "Quit" button



[root@snow root]# cd /mnt/onboard/.adds/inkbox
[root@snow inkbox]# ./inkbox.sh
rm: can't remove '/var/run/brightness': No such file or directory





Numeric mode unsupported in the posix collation implementation
QIODevice::read (QFile, "/inkbox/book/split/."): device not open
QIODevice::read (QFile, "/inkbox/book/split/.."): device not open
QIODevice::read (QFile, "/inkbox/book/split/."): device not open
QIODevice::read (QFile, "/inkbox/book/split/.."): device not open

[root@snow root]#



[dill@archlinux ~]$ ssh root@192.168.1.71
root@192.168.1.71's password:
Segmentation fault
export EDITOR='nano'
export HOME='/tmp/root'
export LESS='-R -M'
export LOGNAME='root'
export OLDPWD='/'
export PATH='/sbin:/usr/sbin:/bin:/usr/bin'
export PS1='[\u@\h \W]\$ '
export PWD='/tmp/root'
export SHELL='/usr/local/niluje/usbnet/bin/ash'
export SHLVL='1'
export SSH_CLIENT='192.168.1.79 54976 22'
export SSH_CONNECTION='192.168.1.79 54976 192.168.1.71 22'
export SSH_TTY='/dev/pts/1'
export TERM='xterm-256color'
export USER='root'




echo some_brightness_value > /some/brightness/backlight/folder/brightness














menu_item:main:InkBox:cmd_spawn:'cd /mnt/onboard/.adds/inkbox && ./inkbox.sh'









./mnt/onboard/.adds/inkbox.sh?
[admin@storm inkbox]# cat /mnt/onboard/.adds/kfmon/config/inkbox.ini
[watch]
filename = /mnt/onboard/inkbox.png
action = /mnt/onboard/.adds/inkbox/inkbox.sh
label = InkBox
hidden = 0
block_spawns = 1
do_db_update = 0
db_title = InkBox.

vi if you're desperate with telnet

























split_booklist = [booklist[x:x+200] for x in range(0, len(booklist),200)] 

























[root@kobo inkbox]# evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "zForce-ir-touch"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 258 (Btn2)
Event code 330 (Touch)
Event type 3 (Absolute)
Event code 0 (X)
Value 476
Min 0
Max 1200
Event code 1 (Y)
Value 146
Min 0
Max 1600
Event code 16 (Hat0X)
Value 0
Min 0
Max 1200
Event code 17 (Hat0Y)
Value 0
Min 0
Max 1600
Event code 24 (Pressure)
Value 0
Min 0
Max 2048















#else
int n = 0;
for (; ;) {
events = QT_READ(m_fd, reinterpret_cast<char*>(buffer) + n, sizeof(buffer) - n);
if (events <= 0)
goto err;
n += events;
if (n % sizeof(::input_event) == 0)
break;
}
n /= sizeof(::input_event);
for (int i = 0; i < n; ++i)
d->processInputEvent(&buffer[i]);
#endif
that? lines 407-422 of qevdevtouchhandler.cpp

















#!/bin/sh -ex
export WORD=`cat /inkbox/dictionary/word`
export LINE_MATCH=`cat index | grep -nw "$WORD" | cut -d: -f 1 | sed -n ""$1"p"`
if [ LINE_MATCH = "" ]; then
exit 1
else
export REGEX_DEF=`sed ""$LINE_MATCH"q;d" definitions`
export PREVENT=`sed "1q;d" definitions`
if [ "$REGEX_DEF" = "$PREVENT" ]; then
if [ "$LINE_MATCH" = "1" ]; then
echo $REGEX_DEF > /inkbox/dictionary/definition
else
echo "No definition found." > /inkbox/dictionary/definition
fi
else
echo $REGEX_DEF > /inkbox/dictionary/definition
echo normal
fi
fi
and that's what it does to find the definition from a given word























git checkout minifix ?







[root@kobo inkbox]# ./inkbox.sh
killall: nickel: no process killed
killall: sickel: no process killed
killall: hindenburg: no process killed
KoboKb: Attempting to capture input...
device: "pixie" 340
screen: 600 800 dpi: 200



























ADDSPATH=/mnt/onboard/.adds/ QTPATH=${ADDSPATH}/qt-linux-5.15.2-kobo LD_LIBRARY_PATH=${QTPATH}lib:lib: QT_QPA_PLATFORM=kobo:touchscreen_rotate=270:touchscreen_invert_x=1:touchscreen_invert_y=1:logicaldpitarget=0 ./inkbox













Wait for screen refresh failed! debug message






















pacstrap tho





































dding the image to the usb for fedora




















dnf

dnf install package
dnf --help










su root at least?



addgroup dill sudo
%wheel


/:-------------:\ dill@fedora
:-------------------:: -----------
:-----------/shhOHbmp---:\ OS: Fedora 33 (KDE Plasma) x86_64
/-----------omMMMNNNMMD ---: Host: Aspire 5732Z V2.06
:-----------sMMMMNMNMP. ---: Kernel: 5.8.15-301.fc33.x86_64
:-----------:MMMdP------- ---\ Uptime: 1 hour, 1 min
,------------:MMMd-------- ---: Packages: 1731 (rpm)
:------------:MMMd------- .---: Shell: bash 5.0.17
:---- oNMMMMMMMMMNho .----: Resolution: 1366x768
:-- .+shhhMMMmhhy++ .------/ DE: Plasma 5.19.5
:- -------:MMMd--------------: WM: KWin
:- --------/MMMd-------------; WM Theme: K01-d
:- ------/hMMMy------------: Theme: Breeze [Plasma], Adwaita [GTK2]
:-- :dMNdhhdNMMNo------------; Icons: breeze [Plasma], breeze [GTK2/3
:---:sdNMMMMNds:------------: Terminal: konsole
:------:://:-------------:: CPU: Pentium T4300 (2) @ 2.100GHz
:---------------------:// GPU: Intel Mobile 4 Series Chipset
Memory: 2001MiB / 3858MiB










hostname but might not stay


fedoralinux in the file



























1Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 69207126 69205079 33G 83 Linux
/dev/sda2 69208064 138414079 69206016 33G 83 Linux
/dev/sda3 138414080 207620095 69206016 33G 83 Linux
/dev/sda4 207622142 278861823 71239682 34G 5 Extended
/dev/sda5 207622144 249565183 41943040 20G 83 Linux
/dev/sda6 249567232 278861823 29294592 14G 83 Linux







































dd SAFELY though

















dd






















yay discord and there you go






















it took me days to install gentoo the first time, and now it takes me like 2 hours


















emerge would take the most time, right

























tar: timestamp <time stamp> is <value> in the future
date ?

date



ntp-client ?
ntpd -q -g?

tar again

ntpd? yes



tar finished/mnt/gentoo/etc/portage/make.conf was extracted, which leads me to believe the entire thing was extracted (edited)

ntpd fixed it?


date again if it shows the correct date










mount /dev/sda /boot










emerge-webrsyncemerge is the compile thing later on, right?




emerge --sync --quiet











make menuconfig then <*> or [*]

























































[16761.445921] wget[7554]: segfault at 0 ip b7dda69c sp bfdc87f0 error 4 in libgnutls.so.30.23.2[b7cea000+109000]
[16761.445988] Code: 31 c0 8b 7c 24 0c 8b 74 24 10 8b 4c 24 14 89 e2 83 c4 80 0f 10 07 83 e4 f0 0f 10 4f 10 0f 29 04 24 89 e7 0f 29 4c 24 10 31 c0 <f3> 0f a6 d0 0f 28 04 24 0f 28 4c 24 10 89 d4 8b 7c 24 0c 0f 11 07









































etc-update



make
make install plasma or something?














sed, it's very useful for a lot of things




"change USE: '+bindist'"

make.conf?







BINDIST=""
# NOTE: This stage was built with the bindist Use flag enabled.






















































































./configure before make



























emerge kde-plasma/plasma-meta
--ask ?







USE=+bindist or something like that before emerge
+

USE="bindist" emerge kde-plasma/plasma-meta

emerging (1 of 269)
























































dd)


















































































































































































































































































bluedevil is printing out a dozen error messages a minute and i have to ^C



startx
















ifconfig usb0 192.168.2.2ssh user@192.168.2.1user



rootrc-service inkbox_gui start
usb0 isnt an interface (edited)
start inkbox_gui as well


enp5s0 and lo
ifconfig -a shows something else
sit0 (edited)



ssh user@192.128.2.1 just hangs









ifsonfig 192.168.2.1 then ssh user@192.168.2.2









-a
















dmesg | tail
































































































































kexec?






































swapon

top and i see 0 swap



swapon /dev/sda6



top use cpu or slow down compiling





emerge




package-bin packages











































_
























- Added new "Recent books" feature
- Added ability to show InkBox version in About dialogs
- Added ability to show changelogs after updates























































vmshell isnt allowed







emerge spectacle take















ln -sf /usr/share/zoneinfo/America/Edmonton /etc/localtime









sudo killall X










set root='(hd1,1)'
but change hd1,1 for the appropriate hd/part

set root='(hd1,1)'
but change hd1,1 for the appropriate hd/part 



























os-prober (edited)






















transmission-gtk
transmission-gtk does what?pacman -S transmission-gtk first?

dd is gonna take a long time























































































chroot /alpine /sbin/openrc "sysinit"
chroot /mnt /opt/bin/diagnostics_splash
sleep 2
chroot /mnt /opt/recovery/launch.sh &
fi RECOVERY?

if [ "$INPUT_LOG" == "" ]; then
mount /dev/mmcblk0p3 /mnt
mount /dev/mmcblk0p1 /mnt/boot
mount --move /proc /mnt/proc
mount --move /sys /mnt/sys
mount -t devtmpfs devtmpfs /mnt/dev
mount -t tmpfs tmpfs /mnt/tmp
chroot /mnt /sbin/openrc "sysinit"
chroot /mnt /sbin/openrc "boot"
chroot /mnt /sbin/openrc "default"
this is the startup






































Nickel
InkBox
InkBox Diags
Reboot
Poweroff

busybox telnetd -F

Nickel
InkBox
InkBox Diags
Reboot
Poweroff 




busybox telnetd -F 







































dpkg right







nano to view the README, or cat?






build-essential installed?









cd discord-folder && ./discord




./discord?
./ says to the shell "hey, I want to execute that file". means current directory

ls?
chrome_100_percent.pak discord.png libvk_swiftshader.so resources.pak
chrome_200_percent.pak icudtl.dat libvulkan.so snapshot_blob.bin
chrome-sandbox libEGL.so locales swiftshader
Discord libffmpeg.so postinst.sh v8_context_snapshot.bin
discord.desktop libGLESv2.so resources

./Discord?



dill@debianlinux:~/Downloads/Discord$ ./Discord
[2777:0319/214258.167987:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/dill/Downloads/Discord/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap


chmod 4755 /home/dill/Downloads/Discord/chrome-sandbox
dill@debianlinux:~/Downloads/Discord$ sudo chmod 4755 /home/dill/Downloads/Discord/chrome-sandbox
dill@debianlinux:~/Downloads/Discord$ ./Discord
[2796:0319/214514.161403:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/dill/Downloads/Discord/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
sudo chown root:root chrome-sandbox


chmoded again










































cd Downloads/Discord && ./discord from konsole








































































































pacman -R gnome and pacman -S kde-plasma or something around those lines (edited)







rc-update add sddm default or am i just dumb

kde-plasma correct



pacman -R -s -c gnome






















pacman -Sy


-Syy (edited)
pacman -Syu








pacman -R -s -c gnome

-R, it complained about dependencies

-R, it complained about dependencies 



pacman -S plasma will do
systemctl enable sddm then systemctl start sddm









kdesudo pacman -S xterm





If you continue, the changes listed below will be written to the disks. Otherwise, you will be able to make further changes manually.
The partition tables of the following devices are changed:
SCSI2 (0,0,0) (sda)
The following partitions are going to be formatted:
partition #7 of SCSI2 (0,0,0) (sda) as ESP
partition #8 of SCSI2 (0,0,0) (sda) as ext4













































Bedrock allows users to mix and match parts of other distros. The install process is considered such a feature. To "get" the install process from another distro, Bedrock converts an install of another distro into Bedrock in-place.
Thus, first, install some Linux distro. When choosing such a distro:
Consider if it has an install process you like. This is the entire point of Bedrock's ability to use another distro's installer.
Consider compatibility with Bedrock.
Do not consider if you like the distro's files. You can swap out key components with those from other distros from it and remove it later.
While Bedrock's hijack install is only officially tested against fresh installs of other distros, no known issues exist hijacking a long-running install. Just make sure to back up first. can i just do it with ubuntu?















































































tar -xzf arduino-1.8.13-linux64.tar.xz?
tar -xfz tells it to use gunzip to extract it

xz -d or something like that
[dill@archlinux ~]$ tar -xf Downloads/arduino-1.8.13-linux64.tar.xz
[dill@archlinux ~]$ cd Downloads
[dill@archlinux Downloads]$ cd Arduino
bash: cd: Arduino: No such file or directory
[dill@archlinux Downloads]$ ls
arduino-1.8.13-linux64.tar.xz bedrock-linux-0.7.19-x86_64.sh
balenaEtcher-1.5.116-ia32.AppImage
[dill@archlinux Downloads]$ 

[dill@archlinux arduino-1.8.13]$ ls
arduino examples java reference tools-builder
arduino-builder hardware lib revisions.txt uninstall.sh
arduino-linux-setup.sh install.sh libraries tools
[dill@archlinux arduino-1.8.13]$ install.sh, correct?

























Arduino: 1.8.13 (Linux), Board: "Arduino Uno"
Board at null is not available
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.





⸮⸮⸮ ⸮ ⸮⸮ ⸮⸮ ⸮@ ⸮ ⸮⸮ ⸮⸮ ⸮ ⸮⸮ ⸮⸮ B ⸮<⸮ ⸮⸮ ⸮⸮⸮⸮
nD ( ⸮ @⸮ ⸮⸮⸮⸮ ⸮⸮ ⸮ ⸮ @ ⸮⸮⸮⸮⸮ppC ⸮&